All Questions
23 questions
0votes
0answers
44views
Not able to modify inode metadata
I am working on a ext4 file-system tool that aims to delete files such that they are not recoverable later on. My goal is to clear the inode metadata of a deleted file, but despite my efforts, the ...
2votes
1answer
99views
Why does inode usage go from 1% to 100% on a single file creation?
Inode usage go from 1 to 100% on a single file creation in a raid array on Debian. First, clean boot, then: sudo cryptsetup luksOpen /dev/RaidVG/LVMVol CVol sudo mount /dev/mapper/CVol /mnt/raid/ ...
0votes
1answer
101views
Determine bytes per inode ratio of existing ext4 filesystem
I created a filesystem following this guide: https://wiki.archlinux.org/title/Ext4#Create_a_new_ext4_filesystem However it looks like I made a mistake because the ratio for /dev/sdc doesn't add up: ...
0votes
1answer
206views
Inode limit reached with free space available
Let's assume I was very unlucky and ran out of inodes in my ext4 filesystem but left with enough free space. Inode usage is 100%, but it has 50% disk free space. How can I resolve it?
1vote
2answers
93views
Each file gets one inode block
A question was given to us by a lecturer: How many data blocks are needed to collect all the data in an EXT4 file system using inodes if the file size is 54 KB and there is a block size of 4KB. ...
2votes
0answers
723views
Inode size 512 and 1024 bytes functions in ext4 and its pros and cons? (Need a official reference)
When i first trying and installing openSUSE tumbleweed, i see when formatting a ext4 i can choose the inode size 128, 256, 512, or 1024 bytes. Typically it is 256. I am thinking a larger inode size ...
1vote
1answer
603views
Ext4 "unused inodes" "free inodes" diffrence?
When I use the dumpe2fs command to look at the Block Group of the ext4 filesystem, I see "free inodes" and "unused inodes". I want to know the difference between them ? Why do they ...
0votes
1answer
301views
How does "Inodes per group" and "lazy_itable_init" flag relate to the "Inode count" value in an ext4 filesystem?
I am trying to root cause a customer case where 2 Identical drives, formatted with the same command, led to a difference of ~55GB in total disk space due to additional Inode overhead. I want to ...
0votes
1answer
30views
Changing rights and owner in one command to safe resources
I have a backup script with the following function: function change_rights() { chown -R ${OWNER}:${GROUP} ${DIR} find ${DIR} -type f -exec chmod 0640 {} \; find ${DIR} -type d -exec chmod ...
1vote
1answer
476views
What‘s different between inode->i_rwsem and i_flctx?
When I trace the function graph when calling write(), I find that within function ext4_file_write_iter() it locks the inode->i_rwsem by calling inode_lock(inode) at the beginning. After that call ...
2votes
1answer
698views
inode, list block pointers
The inode structure of some filesystems includes a list of pointers to the blocks used to store the file contents. This list should exist for ext2/3/4, as specified in the first comment to this ...
-1votes
1answer
3kviews
What does upper/lower bits mean?
I'm learning a bit about Ext4 file system here. In the first table on this link they are describing fields of the inode. Each field entry has an: offset size name description In the description field ...
-2votes
1answer
2kviews
What is the difference between "dentry" and "inode table" in Linux FS? [duplicate]
Are dentries and inode table same thing? If not what is the purpose of each and where are they stored? How does the filesystem exactly work specifically "ext4" or "xfs"?
3votes
2answers
3kviews
How do inode numbers from ls -i relate to inodes on disk
I'm trying to understand how inode numbers (as displayed by ls -i) work with ext4 partitions. I'm trying to understand whether they are a construct of the linux kernel and mapped to inodes on disk, ...
5votes
4answers
5kviews
How come that inodes of directories store filenames in ext4 filesystem?
A directory inode isn't substantially different from that of a regular file's inode, what I comprehend from Ext4 Disk Layout is that: Directory Entries: Therefore, it is more accurate to say ...